package chen.videoedit;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import chen.videoedit.play.PlayVideoActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.main_bta).setOnClickListener(this);
        findViewById(R.id.main_btb).setOnClickListener(this);
        findViewById(R.id.main_btc).setOnClickListener(this);
        findViewById(R.id.main_btd).setOnClickListener(this);
        findViewById(R.id.main_bte).setOnClickListener(this);
        findViewById(R.id.main_btf).setOnClickListener(this);
        findViewById(R.id.main_btg).setOnClickListener(this);
        findViewById(R.id.main_bth).setOnClickListener(this);
        findViewById(R.id.main_btj).setOnClickListener(this);
        findViewById(R.id.main_btk).setOnClickListener(this);
        findViewById(R.id.main_btl).setOnClickListener(this);
        findViewById(R.id.main_btz).setOnClickListener(this);
        findViewById(R.id.main_btzz).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.main_bta:
                Intent intentS = new Intent(this, SplitActivity.class);
                startActivity(intentS);
                break;
            case R.id.main_btb:
                Intent intentI = new Intent(this, InterceptionActivity.class);
                startActivity(intentI);
                break;
            case R.id.main_btc:
                Intent intentA = new Intent(this, Mp3ToAacActivity.class);
                startActivity(intentA);
                break;
            case R.id.main_btd:
                Intent intentAV = new Intent(this, AACaddVIDEOActivity.class);
                startActivity(intentAV);
                break;
            case R.id.main_bte:
                Intent intentN = new Intent(this, AddAudioActivity.class);
                startActivity(intentN);
                break;
            case R.id.main_btf:
                Intent intentJ = new Intent(this, JointVideoActivity.class);
                startActivity(intentJ);
                break;
            case R.id.main_btg:
                Intent intentT = new Intent(this, AudioJointActivity.class);
                startActivity(intentT);
                break;
            case R.id.main_bth:
                Intent intentVJ = new Intent(this, VideoJointActivity.class);
                startActivity(intentVJ);
                break;
            case R.id.main_btj:
                Intent intentSA = new Intent(this, ScreenshotActivity.class);
                startActivity(intentSA);
                break;
            case R.id.main_btk:
                Intent intentP = new Intent(this, PlayVideoActivity.class);
                startActivity(intentP);
                break;
            case R.id.main_btl:
                Intent intentAP = new Intent(this, AudioPlayActivity.class);
                startActivity(intentAP);
                break;
            case R.id.main_btz:
                Intent intentcpv = new Intent(this, ContinuousPlayVideoActivity.class);
                startActivity(intentcpv);
                break;
            case R.id.main_btzz:
                Intent intentce = new Intent(this, EncodingVideoActivity.class);
                startActivity(intentce);
                break;
        }

    }
}
